Microprocessor power supply system including a programmable power supply and a programmable brownout detector

ABSTRACT

A microprocessor power supply system, which features a programmable power supply and a programmable brownout detector with a central control unit that allows for independent, but coordinated, control of operating voltage and brownout reference voltage. The invention prevents improper programming of the operating voltage and the brownout reference voltage levels. The programmable power supply and brownout detector threshold can also be controlled to provide an optimum threshold over a range of operating voltages.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to microprocessor and microcontroller power supplies, and more specifically, to a power supply system having a programmable power supply and a programmable brownout detector which can be set to track the power supply output. The programmable power supply and the programmable brownout detector are independently controlled by a common, intelligent control unit. The control unit may also disable the programmable brownout detector.

2. Description of the Prior Art

Programmable power supplies and brownout detectors for microprocessors are known in the art. The use of microprocessors in battery powered equipment and in high reliability applications has produced the need to change operating voltages to reduce current consumption for low power and battery powered applications and to detect when the operating voltage drops below a predetermined level for reliability considerations.

A brownout is considered to have occurred when the incoming voltage available to the microprocessor has dropped to a level where the microprocessor should not continue operating, since errors or partly functional conditions may occur in the logic or storage elements. The brownout ends when the voltage has risen back above the brownout level. A hysteresis or latching scheme can be used to prevent oscillation at the brownout level.

A brownout detector detects when the operating voltage has dropped to just above the brownout voltage level and produces a signal to indicate to the microprocessor that a brownout is pending.

The brownout detector can reset or freeze the operation of the microprocessor to avoid improper operation. In a practical application, the microprocessor must be protected against brownout conditions that can cause the logic to enter unknown states and thereby corrupt the operation of the processor.

In the existing state of the art, these power supplies and brownout detectors are either not linked in operation at all, or are linked only by virtue of the reference voltage to the brownout detector being related directly to the operating voltage to the processor. Also there is no provision for lowering the operating voltage of a microprocessor during sleep mode to reduce current consumption.

The present invention improves upon these past techniques by providing a programmable power supply which can lower the operating voltage during sleep mode or as the application otherwise requires and a programmable brownout detector which can intelligently relate the operating voltage to a brownout level. This prevents improper operation due to the brownout level being set too high by an improper instruction or by firmware error. It also allows for a complex relationship between the operating voltage reference and the brownout detector threshold.

SUMMARY OF THE INVENTION

It is an object of the present invention to provide a programmable brownout detector and a programmable power supply for increasing the reliability of a microprocessor system.

It is an object of the present invention to provide a programmable brownout detector which cannot be misprogrammed to detect an incorrect brownout level for a given operating voltage.

It is another object of the present invention to provide a system which allows a programmable brownout detector to have a threshold optimally determined over a range of operating voltages which are programmable.

It is another object of the present invention to provide a system which reduces the operating voltage to a microprocessor during sleep mode to reduce power consumption.

In accordance with one embodiment of the present invention, a programmable power supply and a programmable brownout detector are provided. The power supply and the brownout detector are programmed by a control unit, which allows the brownout voltage and operating voltage to be varied independently.

In accordance with another embodiment of the present invention, a programmable power supply and a programmable brownout detector are provided where they are both programmed by a control unit and the control unit prevents improper programming by firmware or operating failures.

In accordance with another embodiment of the present invention, a programmable power supply and a programmable brownout detector are provided wherein they are programmed by a control unit and the control unit relates the operating voltage to the brownout level so as to optimize operation of the brownout detector.

In accordance with another embodiment of the present invention, a programmable power supply is provided wherein the operating voltage is lowered during sleep mode to reduce power consumption in sleep mode.

The foregoing and other objects, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified electrical diagram of the programmable power supply and programmable brownout detector.

FIG. 2 is a schematic diagram of a programmable voltage divider network.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

Referring to FIG. 1, a microprocessor power supply system 10 comprising a programmable power supply 30, a programmable brownout detector 20 and a control unit 40 is implemented. The programmable power supply 30, comprises a programmable regulator reference voltage source 14 and a regulator 16.

As shown in FIG. 2, wherein like numerals reflect like elements, the programmable regulator reference voltage source 14 can be implemented as a chain of linear or non-linear resistors or resistive devices 142 and are shown as MOS transistors. These resistive devices 142 may be either shunted or selected by a chain of analog switches 141. The desired voltage division may be selected by a second chain of analog switches 143 to provide a regulator reference voltage 12 selected from a variety of options. The control unit 40 would select a discrete regulator reference voltage 12 by controlling the selection of switches 141 and 143. The programmable regulator reference voltage source 14 thus is a programmable voltage divider chain or network.

Referring to FIG. 1, the regulator 16 acts as a buffer for the regulator reference voltage 12 to provide the current levels needed at the operating voltage output 18. This operating voltage output 18 provides the operating power for the microprocessor or microcontroller.

The programmable brownout detector 20, comprises a programmable brownout reference voltage source 22 and a comparator 24. The comparator 24, compares the brownout reference voltage 28, provided by the programmable brownout reference voltage source 22, to the operating voltage output 18. When the operating voltage output 18 voltage drops below the brownout reference voltage 28, a brownout condition has occurred. The brownout signal output 26 is activated to indicate to the microprocessor that the microprocessor should take action to prevent invalid operation as a result of operating voltage decay. The programmable brownout reference voltage source 22 can be implemented similar to the programmable voltage divider as described in FIG. 2 for the programmable regulator reference voltage source 14. In general, the brownout reference voltage 28 should be a fraction of the operating voltage output 18.

The control unit 40 provides the digital interface from the control bus 32 to the programmable regulator reference voltage source 14 and the programmable brownout reference voltage source 22. The control unit 40 contains logic to prevent setting invalid combinations as between the operating voltage output 18 and the brownout reference voltage 28, e.g. brownout reference voltage 28 greater than the operating voltage output 18. Thus, the control unit 40 prevents invalid voltage settings due to improper operation of the electronics or invalid programming instructions by coordinating operating voltage 18 with brownout reference voltage 28. Furthermore, the control unit 40 may provide an optional disable signal 34 which will disable the programmable brownout detector 20 from operation. The optional disable signal 34 may also be programmable.

The control unit 40 supplies the control input to the programmable brownout reference voltage source 22. The control unit 40 also contains logic to ensure that the brownout reference voltage 28 does not exceed the level of the operating voltage output 18. Those skilled in the art will recognize that these types of control functions can be implemented by a state machine or other types of combinational and sequential digital logic. Thus, the function of the control unit 40 can be extended to control the range of the brownout reference voltage 28 in any fashion necessary to protect the microprocessor from invalid operating voltages.

In one embodiment, using analog switches for the programmable brownout reference voltage source 22 and the programmable regulator reference voltage source 14, the control unit 40 can set the state of the analog switches in the programmable brownout reference voltage source 22 based on the state of the switches in the programmable regulator reference voltage source 14. For example, the control unit 40 can close the analog switches in the programmable brownout reference voltage source 22 if a corresponding switch in the programmable regulator reference voltage source 14 is closed, ensuring the brownout reference voltage 28 will never exceed the regulator reference voltage 12.

While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the invention. 

What is claimed is:
 1. An improved microprocessor power supply system comprising: a programmable power supply for supplying power to a microprocessor; a programmable brownout detector coupled to said programmable power supply for detecting when a operating voltage drops below a brownout reference voltage and for further providing a brownout signal output; and a control unit coupled to said programmable power supply and further coupled to said programmable brownout detector for setting said operating voltage and further setting said brownout reference voltage.
 2. The microprocessor power supply system in accordance with claim 1 wherein said control unit sets said brownout reference voltage not to exceed a fixed fraction of said operating voltage.
 3. The microprocessor power supply system in accordance with claim 1 wherein said control unit can disable the operation of said programmable brownout detector.
 4. The microprocessor power supply system in accordance with claim 1 wherein said the programmable brownout detector comprises: a programmable brownout reference voltage source for setting said brownout reference voltage; and a comparator coupled to said programmable brownout reference voltage source and for providing said brownout signal output.
 5. The microprocessor power supply system in accordance with claim 1 wherein said programmable power supply comprises: a programmable regulator reference voltage source for setting a regulator reference voltage; and a regulator coupled to said programmable regulator reference voltage source for buffering said regulator reference voltage.
 6. The microprocessor power supply system in accordance with claim 1 wherein said programmable power supply comprises: a voltage divider network for producing a plurality of regulator reference voltages; and a regulator coupled to said voltage divider network for providing said operating voltage; said control unit having at least one output coupled to said voltage divider network for selecting discrete values of said plurality of regulator reference voltages.
 7. The microprocessor power supply system in accordance with claim 1 further comprising: a voltage divider network for producing a plurality of brownout reference voltages; said control unit having at least one output coupled to said voltage divider network for selecting discrete values of said plurality of brownout reference voltages.
 8. The microprocessor power supply system in accordance with claim 7 wherein said programmable power supply comprises: a second voltage divider network for producing a plurality of regulator reference voltages; and a regulator coupled to said second voltage divider network for providing said operating voltage; said control unit having at least one second output coupled to said second voltage divider network for selecting discrete values of said plurality of regulator reference voltages.
 9. The microprocessor power supply system in accordance with claim 1 wherein said control unit changes said brownout reference voltage based on the setting of said operating voltage.
 10. The microprocessor power supply system in accordance with claim 9 wherein said control unit sets said brownout reference voltage to not exceed a fixed fraction of said operating voltage.
 11. The microprocessor power supply system in accordance with claim 9 wherein said control unit can disable the operation of said programmable brownout detector.
 12. The microprocessor power supply system in accordance with claim 9 wherein said programmable power supply comprises: a programmable regulator reference voltage source for setting a regulator reference voltage of said programmable regulator reference voltage source; and a regulator coupled to said programmable regulator reference voltage source for buffering said regulator reference voltage.
 13. The microprocessor power supply system in accordance with claim 9 wherein said programmable power supply comprises: a voltage divider network for producing a plurality of regulator reference voltages; and a regulator coupled to said voltage divider network for providing said operating voltage; said control unit having at least one output coupled to said voltage divider network for selecting discrete values of said plurality of regulator reference voltages.
 14. The microprocessor power supply system in accordance with claim 9 further comprising: a voltage divider network for producing a plurality of brownout reference voltages; said control unit having at least one output coupled to said voltage divider network for selecting discrete values of said plurality of brownout reference voltages.
 15. The microprocessor power supply system in accordance with claim 14 wherein said programmable power supply comprises: a second voltage divider network for producing a plurality of regulator reference voltages; and a regulator coupled to said second voltage divider network for providing said operating voltage; said control unit having at least one second output coupled to said second voltage divider network for selecting discrete values of said plurality of regulator reference voltages. 